﻿define(['dojo/_base/declare', 'esri/geometry/Point', 'geomap/plugins/layers/CurveLayer'], function (
    declare,
    Point,
    CurveLayer
) {
    var CustomCurveLayer = declare([CurveLayer], {
        setData: function (mapView, layer) {
            var me = this;

            var options = layer.layer || {};
            me.data = $.extend(true, [], options.data);
            me.options = options;
            me.devicePixelRatio = 1;
            me.percent = 0;
            me.curveness = options.curveness || 0.2; //曲率
            me.mapv = options.options.mapv;
            me.symbol = options.symbol || options.style;
            me.lngFieldName = options.lngFieldName || 'x';
            me.latFieldName = options.latFieldName || 'y';
            // me.requestAnimationFrame=options.requestAnimationFrame;
            me.refresh();
        },
    });
    return CustomCurveLayer;
});
